home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 7_10.lha / 7_10 / qt_head.c < prev    next >
Text File  |  1993-08-08  |  639b  |  24 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. include <process.h>
  6. include <debug.h>    /* DELETE */
  7. / Return the queue_head associated with this queue.
  8. / If it doesn't already exist, create it.
  9. ueue_head *queue_tail::head()
  10.  
  11.    if (debug) /*DELETE*/ cerr << "queue_tail" << this << "::head()\n";
  12.    process_queue *q = qt_queue;
  13.    register queue_head *h = q->q_head;
  14.  
  15.    if (!h)
  16. {
  17. q->q_head = h = new queue_head(qt_mode, 0);
  18. h->qh_queue = q;
  19. }
  20.  
  21.    if (debug) /*DELETE*/ cerr << "queue_tail" << this << "::head() <- " << h << "\n";
  22.    return h;
  23.  
  24.